<script type="text/javascript" src="/Inc/AspBox/jsLib/base64.js"></script>
<script type="text/javascript">
var text = "hello,kitty!你好"; //要加密的原字符串
var entext = base64encode(text); //加密
var otext = base64decode(entext); //解密(还原)

document.writeln(entext+''); //aGVsbG8lMkNraXR0eSUyMSV1NEY2MCV1NTk3RA==
document.writeln(otext+''); //hello,kitty!你好
</script>